import service from "../request.js";

export function getDrugList(query) {
  return service({
    method: "post",
    url: "/drug/list",
    data: query,
  });
}

export function orderAdd(query) {
  return service({
    method: "post",
    url: "/saleRecord/save",
    data: query,
  });
}
export function updateDrug(query) {
  return service({
    method: "post",
    url: "/drug/update",
    data: query,
  });
}
export function deleteDrug(id) {
  return service({
    method: "get",
    url: `/drug/delete/${id}`,
  });
}
export function insertDrug(query) {
  return service({
    method: "post",
    url: "/drug/insert",
    data: query,
  });
}
